package org.jeecg.modules.biz.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import lombok.extern.slf4j.Slf4j;
import org.jeecg.modules.biz.entity.EventBet;
import org.jeecg.modules.biz.mapper.EventBetMapper;
import org.jeecg.modules.biz.service.EventBetService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;

/**
 *
 * 认筹任务 service接口实现
 *
 */
@Slf4j
@Service
public class EventBetServiceImpl extends ServiceImpl<EventBetMapper, EventBet> implements EventBetService {
    @Autowired
    private EventBetMapper betMapper;

    @Override
    public EventBet getLatestOne() {
        return betMapper.getLatestOne();
    }

    @Override
    public IPage<EventBet> list4IsSettle(Page<EventBet> page, String timestampBegin, String timestampEnd) {
        return betMapper.list4IsSettle(page, timestampBegin, timestampEnd);
    }

    @Override
    public boolean updateIsSettleByCallerAndDate(String caller, String date) {
        return betMapper.updateIsSettleByCallerAndDate(caller, date);
    }
}
